// Register page module
// ====================

define(['zepto', 'sui', 'submitForm'], function($) {
  return {
    init: function(data) {
      this.recommender = data.recommender;
      this.inviter = data.inviter;
      
      this.initPage();
    },
    initPage: function() {
      var that = this;
      /*$(".participate-btn").click(function() {
    	  $.ajax({
    		  url: window.__CTX__.root + "/participation/participate?course=2&recommender=" + that.recommender,
    		  type: "POST",
    		  success: function(res) {
    			  res = JSON.parse(res);
    			  if(res.code == 0) {
    				  window.location.href = window.__CTX__.root + "/courses";
    			  } else {
    				  $.toast(res.message);
    			  }
    		  },
    		  failure: function() {
    			  $.toast("请求失败 ");
    		  }
    	  }) 
      })*/
      
    }
   
  }
})